<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
import React from 'react'
import PropTypes from 'prop-types'
import {Table, Modal, Form, Button, Row, Col, DatePicker, Input, Cascader, Switch, Icon, Affix, InputNumber} from 'antd'
import {DropOption} from '../../components'
import {Link} from 'dva/router'

const confirm = Modal.confirm

function list({on${declarationName}RowDeleteItem, on${declarationName}RowEditItem, location, ...tableProps}) {
  return (
    <Table
      {...tableProps}
      bordered
      simple
      size="small"
      rowKey={record => record.id}
    />
  )
}

list.propTypes = {
  onDeleteItem: PropTypes.func,
  onEditItem: PropTypes.func,
  location: PropTypes.object,
}

export default list
